<%- include('../includes/header') %>
<link rel="stylesheet" href="/css/order.css">
</head>
<body>
    <%- include('../includes/navigation') %>
    <main>
        <% if( orders.length > 0 ) { %>
        <ul class="order-list">
            <% for(order of orders) { %>
            <li class="order-item">
                <h3>订单号：#<%= order._id %></h3>
                <ul class="product-list">
                    <% for( p of order.items ) { %>
                    <li class="product-item">
                        <%= p.title %>--<%= p.quantity %>
                    </li>
                    <% } %>
                </ul>
            </li>
            <% } %>
        </ul>
        <% } else { %>
        <h1>没有任何订单...</h1>
        <% } %>
    </main>
<%- include('../includes/end') %>